﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IsmsExplorer.Model.Iso27001 {
    public class Iso27001ControlSubsection : Iso27001ControlBase {
        #region Data
        private string _objective;
        private Iso27001ControlSection _section;
        private IList<Iso27001Control> _controls;
        #endregion

        #region Construction
        public Iso27001ControlSubsection(int id, string referenceID, string name, string objective, Iso27001ControlSection section) : base(id, referenceID, name) 
        {
            // Currently (2005 version of standard) there were 133 Controls.
            _controls = new List<Iso27001Control>(133);
            this.Objective = objective;
            this.Section = section;
        }

        public Iso27001ControlSubsection(int id, string referenceID, string name, string objective) : this(id, referenceID, name, objective, null) 
        {
        }
        #endregion

        public string Objective {
            get { return _objective; }
            protected set { _objective = value; }
        }

        public Iso27001ControlSection Section {
            get { return _section; }
            set { _section = value; }
        }

        public IList<Iso27001Control> Controls {
            get { return _controls; }
            set { _controls = value; }
        }

    }
}
